package cn.tedu.egmvc3.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Singular;

import javax.validation.constraints.Size;

@Data
public class UserAddParam {
    @Size(min = 6,max = 12,message = "用户名必须在6到12位之间")
    @ApiModelProperty(value = "用户名",required = true)
    private String username;
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    @ApiModelProperty(value = "昵称",required = true)
    private String nickname;
}
